package org.com.behavioralPattern.strategyPattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/27 14:12
 */
public class FixDiscountStrategy extends DiscountStrategy {

    public FixDiscountStrategy(double price,int number){
        super(price, number);
    }

    @Override
    public double calculateDiscount() {
        return getNumber()*1;
    }
}
